
  <div class="x_panel">
    <div class="x_content" style="display: block;">
      <!--表格主体内容-->

      <div class="cont">
        <form action="" method="post">
        <table class="table table-bordered table-striped">
          <thead>
          <tr>
            <th width="100px">序号</th>
            <th>角色</th>
            <th>类型</th>
            <th>佣金比例</th>
          </tr>
          </thead>
          <tbody>
          {foreach $commission as $commissionitem}
          <tr>
            <td>{$commissionitem.config_id}</td>
            <td>{if $commissionitem.role==1}店主{else}店长{/if}</td>
            <td>{if $commissionitem.type==0}入场券使用{elseif $commissionitem.type==1}会员卡使用{elseif $commissionitem.type==2}商品出售{elseif $commissionitem.type==3}商品回收{elseif $commissionitem.type==4}摇摇车{/if}</td>
            <td><input type="text" name="value[{$commissionitem.role},{$commissionitem.type}]" class="form-control" value=""  placeholder="0">%</td>
            <!--<td>
              <div class="x_content">
                <a class="btn btn-primary btn-xs" href="{eval U(['commission/edit','config_id'=>$commissionitem.config_id])}"> 编辑</a>
              </div>
            </td>-->
          </tr>
          {/foreach}
          </tbody>
        </table>
        <input type="hidden" name="plan_id" value="{$plan_id}" />
          <button class="btn btn-primary" type="submit">添加</button>
        </form>
      </div>
    </div>
  </div>
